const state = {
  userInfo: {},
  userSize: {},
  try: false
};

const getters = {
  getUserInfo: state => state.userInfo,
  getRootId: state => state.userInfo.rootId,
  getTry: state => state.try
};

const mutations = {
  setUserInfo(state, data) {
    state.userInfo = data
    state.userSize = data.userSize
  },
  setUserSize(state, data) {
    state.userSize = data
  },
  setTry(state, data) {
    state.try = data
  }
};

const actions = {

};

export default {
  state,
  getters,
  mutations,
  actions
};